perf(cli): stabilize subagent inspection and dispatch portability - #2007
Merged
limityan merged 1 commit intoAug 3, 2026
Merged
Conversation
Keep TUI lineage reads nonblocking, move settlement validation to the Runtime owner, and make shared IPC reads supersedable and full duplex. Preserve exact cancellation outcomes and fix the confirmed Windows Dispatch test and worktree path portability issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
View subagentsentrypoint while moving lineage query/inspection work off the TUI render loop, adding per-session freshness fences and bounded refresh backoff.Architecture and behavior
CoreSessionOperationsPort, coordinator mutation lease, session persistence, and TUI event projection. No second Runtime, transcript cache, generic request multiplexer, or new user command is introduced.OutcomeUnknownrather than implying a safe retry.Performance and consistency evidence
OutcomeUnknownreturns\\?\dunce::canonicalize; full CLI/Dispatch suite passesNon-goals
Validation
cargo test --workspace -j 2 --quiet -- --format tersecargo check --workspace -j 2cargo test -p bitfun-cli -j 2(653 unit tests plus all CLI integration suites)cargo test -p bitfun-services-integrations --all-features -j 2(474 unit tests plus contract/doc tests)cargo test -p bitfun-services-integrations --features review-platform repository_root_accepts_nested_and_file_paths -- --nocapturecargo test -p bitfun-agent-runtime-ipc -j 2(61 tests)cargo test -p bitfun-agent-runtime lineage -j 2cargo test -p bitfun-core lineage -j 2cargo test -p bitfun-core post_admission -j 2 -- --nocapturecargo test -p bitfun-runtime-ports session_lineage_contracts_serialize_provider_neutral_facts -j 2node scripts/check-core-boundaries.mjsrustfmt --edition 2021 --check;git diff --checkThe local Windows workspace uses 16 logical cores with a small page file; an earlier unconstrained concurrent link run reproduced
rustcexits with0xc0000409under commit pressure. The final workspace check and unfiltered workspace test use-j 2to control linker concurrency, not to reduce test coverage. No CI/workflow workaround is included.